
<div class="row">
    <div class="top">首页>担保人查看&编辑</div>
    <div class="content">
    <form class="form-horizontal" method="post">
        <div class="box">
            <h1>添加<span>(标*为必填项)</span></h1>
            <div class="list-block">
                <input type="hidden" name="id" value={$assure.id}>
                <div class="form-group">
                    <label for="user_name" class="col-sm-2 control-label">担保人姓名</label>
                    <div class="col-sm-10">
                      <input name="user_name" type="text" class="form-control" id="user_name" value={$assure.user_name}>
                    </div>
                </div>
                <div class="form-group">
                    <label for="identity_no" class="col-sm-2 control-label">身份证号</label>
                    <div class="col-sm-10">
                      <input name="identity_no" type="text" class="form-control" id="identity_no" value={$assure.identity_no}>
                    </div>
                </div>
                <div class="form-group">
                    <label for="age" class="col-sm-2 control-label">年龄</label>
                    <div class="col-sm-10">
                      <input name="age" type="text" class="form-control" id="age" value={$assure.age}>
                    </div>
                </div>
                <div class="form-group">
                    <label for="education" class="col-sm-2 control-label">学历</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="education" id="form-field-19">
                            <foreach name="educationItems" item="val" >
                            <if condition="$key eq $assure['education']">
                                <option value={$key} selected>{$val}</option>
                            <else />
                                <option value={$key}>{$val}</option>
                            </if>
                            </foreach>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label for="house_type" class="col-sm-2 control-label">房屋类型</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="house_type" id="form-field-19">
                            <foreach name="houseTypeItems" item="val" >
                            <if condition="$key eq $assure['house_type']">
                                <option value={$key} selected>{$val}</option>
                            <else />
                                <option value={$key}>{$val}</option>
                            </if>
                            </foreach>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label for="live_time" class="col-sm-2 control-label">居住年限</label>
                    <div class="col-sm-10">
                      <input name="live_time" type="text" class="form-control" id="live_time" value={$assure.live_time}>
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label" for="form-field-15">现居住地</label>
                    <div class="col-sm-10" data-toggle="distpicker" id="assure-now">
                        <div class="col-sm-4">
                            <select class="form-control" style="margin-right: 15px;" id="province" name="now_province"></select>
                        </div>
                        <div class="col-sm-4">
                            <select class="form-control" style="margin-right: 15px;" id="city" name="now_city"></select>
                        </div>
                        <div class="col-sm-4">
                            <select class="form-control" style="margin-right: 15px;" id="district" name="now_district"></select>
                        </div>
                        <!-- <input data-easyform="real-time" data-message="请填写担保人现居住地" data-easytip="position:top;class:easy-red" style="margin-right: 15px;" id="form-field-16" class="myCss col-xs-10 col-sm-3" type="text" name="assure_address" value={$assure.address}> -->
                    </div>
                </div>
                <div class="form-group">
                    <label for="now_address" class="col-sm-2 control-label">详细地址</label>
                    <div class="col-sm-10">
                      <input name="now_address" type="text" class="form-control" id="now_address" value={$assure.now_address}>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="form-field-15">户籍</label>
                    <div class="col-sm-10" data-toggle="distpicker" id="assure-home">
                        <div class="col-sm-4">
                            <select class="form-control" id="province" name="home_province"></select>
                        </div>
                        <div class="col-sm-4">
                            <select class="form-control" id="city" name="home_city"></select>
                        </div>
                        <div class="col-sm-4">
                            <select class="form-control" id="district" name="home_district"></select>
                        </div>
                        <!-- <input data-easyform="real-time" data-message="请填写担保人现居住地" data-easytip="position:top;class:easy-red" id="form-field-16" class="myCss col-xs-10 col-sm-3" type="text" name="assure_address" value={$assure.address}> -->
                    </div>
                </div>
                <div class="form-group">
                    <label for="address" class="col-sm-2 control-label">户籍详细地址</label>
                    <div class="col-sm-10">
                      <input name="address" type="text" class="form-control" id="address" value={$assure.address}>
                    </div>
                </div>
                <div class="form-group">
                    <label for="telephone" class="col-sm-2 control-label">手机号</label>
                    <div class="col-sm-10">
                      <input name="telephone" type="text" class="form-control" id="telephone" value={$assure.telephone}>
                    </div>
                </div>
                <div class="form-group">
                    <label for="company" class="col-sm-2 control-label">工作单位</label>
                    <div class="col-sm-10">
                      <input name="company" type="text" class="form-control" id="company" value={$assure.company}>
                    </div>
                </div>
                <div class="form-group">
                    <label for="work_life" class="col-sm-2 control-label">工作年限</label>
                    <div class="col-sm-10">
                      <input name="work_life" type="text" class="form-control" id="work_life" value={$assure.work_life}>
                    </div>
                </div>
                <div class="form-group">
                    <label for="industry" class="col-sm-2 control-label">所属行业</label>
                    <div class="col-sm-10">
                      <input name="industry" type="text" class="form-control" id="industry" value={$assure.industry}>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="form-field-15">单位地址</label>
                    <div class="col-sm-10" data-toggle="distpicker" id="assure-company">
                        <div class="col-sm-4">
                            <select class="form-control" style="margin-right: 15px;" id="province" name="com_province"></select>
                        </div>
                        <div class="col-sm-4">
                            <select class="form-control" style="margin-right: 15px;" id="city" name="com_city"></select>
                        </div>
                        <div class="col-sm-4">
                            <select class="form-control" style="margin-right: 15px;" id="district" name="com_district"></select>
                        </div>
                        <!-- <input data-easyform="real-time" data-message="请填写担保人现居住地" data-easytip="position:top;class:easy-red" style="margin-right: 15px;" id="form-field-16" class="myCss col-xs-10 col-sm-3" type="text" name="assure_address" value={$assure.address}> -->
                    </div>
                </div>
                <div class="form-group">
                    <label for="company_address" class="col-sm-2 control-label">单位详细地址</label>
                    <div class="col-sm-10">
                      <input name="company_address" type="text" class="form-control" id="company_address" value={$assure.company_address}>
                    </div>
                </div>
                <div class="form-group">
                    <label for="company_nature" class="col-sm-2 control-label">单位性质</label>
                    <div class="col-sm-10">
                      <input name="company_nature" type="text" class="form-control" id="company_nature" value={$assure.company_nature}>
                    </div>
                </div>
                <div class="form-group">
                    <label for="office" class="col-sm-2 control-label">职务职位</label>
                    <div class="col-sm-10">
                      <input name="office" type="text" class="form-control" id="office" value={$assure.office}>
                    </div>
                </div>
                <div class="form-group">
                    <label for="month_income" class="col-sm-2 control-label">月收入</label>
                    <div class="col-sm-10">
                      <input name="month_income" type="text" class="form-control" id="month_income" value={$assure.month_income}>
                    </div>
                </div>
                <div class="form-group">
                    <label for="note" class="col-sm-2 control-label">备注</label>
                    <div class="col-sm-10">
                      <input name="note" type="text" class="form-control" id="note" value={$assure.note}>
                    </div>
                </div>
            </div>
        </div>
        <div class="box">
            <h1>操作</h1>
            <div class="list-block">
                <input type="submit" class="button01" value="提交">
                <input type="button" class="button01" value="重置">
            </div>
        </div>
    </form>
    </div>
</div>

<script src="http://www.jq22.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://www.jq22.com/jquery/bootstrap-3.3.4.js"></script>
<script src="__JS__/distpicker.data.js"></script>
<script src="__JS__/Admin/js/distpicker.js"></script>
<script src="__JS__/Admin/js/main.js"></script>

<script type="text/javascript">
    // 初始化担保人户籍
    $("#assure-home").distpicker({
      province: '{$home_area.province}',
      city: '{$home_area.city}',
      district: '{$home_area.district}'
    });

    // 初始化担保人现居住地
    $("#assure-now").distpicker({
      province: '{$now_area.province}',
      city: '{$now_area.city}',
      district: '{$now_area.district}'
    });

    // 初始化担保人单位地址
    $("#assure-company").distpicker({
      province: '{$com_area.province}',
      city: '{$com_area.city}',
      district: '{$com_area.district}'
    });
</script>